package com.loong.pojo;

import java.io.Serializable;

/**
 * 对应数据库的地址表
 */
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer aid;
    private Integer uid;
    private String recipient;//收件人
    private String phone; //收件人手机号
    private String detailedAddress;//详细地址
    private Integer defaultAddress;  //是否为默认地址

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getRecipient() {
        return recipient;
    }

    public void setRecipient(String recipient) {
        this.recipient = recipient;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress;
    }

    public Integer getDefaultAddress() {
        return defaultAddress;
    }

    public void setDefaultAddress(Integer defaultAddress) {
        this.defaultAddress = defaultAddress;
    }

    @Override
    public String toString() {
        return "Address{" +
                "aid=" + aid +
                ", uid=" + uid +
                ", recipient='" + recipient + '\'' +
                ", phone='" + phone + '\'' +
                ", detailAddress='" + detailedAddress + '\'' +
                ", defaultAddress=" + defaultAddress +
                '}';
    }
}
